https://pst.iorinn.moe/archives/sol-hnoi-2018-circle.html
[HNOI2018] 转盘 [线段树]